import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 商品信息
 */
@Entity('order_quality')
export class OrderQualityEntity extends BaseEntity {
  
  @Column({ comment: '订单ID' })
  orderId: number;

  // 订单号
  @Column({ comment: '订单号' })
  orderNo: string;

  // 左右眼
  @Column({ comment: '左右眼', nullable: true })
  eye: string;

  // 扫描链接
  @Column({ comment: '扫描链接', nullable: true })
  scanUrl: string;

  // 扫描用户ID
  @Column({ comment: '扫描用户ID', nullable: true })
  scanUserId: number;

  // 姓名
  @Column({ comment: '姓名', nullable: true })
  name: string;

  // 出生年月
  @Column({ comment: '出生年月', nullable: true })
  birthDate: string;

  // 性别
  @Column({ comment: '性别', nullable: true })
  sex: string;

  // 镜片参数
  @Column({ comment: '镜片参数', nullable: true, type: 'json' })
  lensParams: string;

  // 是否激活
  @Column({ comment: '是否激活', default: 0 })
  isActive: number;

}
